package com.enjoyor.soa.traffic.server.efoms.dubbo.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboCheckDeviceInfoService;
import com.enjoyor.soa.traffic.server.efoms.dubbo.manage.ManageCheckDeviceInfoService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;


@SuppressWarnings("rawtypes")
@Service(version = "1.0.0", timeout = 4000)
public class DubboCheckDeviceInfoService implements IDubboCheckDeviceInfoService{

	@Autowired
	private ManageCheckDeviceInfoService manageCheckDeviceInfoService;
	
	/**
	 * 获取巡检设备分页信息；
	 */
	@Override
	public ResultPojo getCheckDeviceInfoPage(String DevId,String devTypeCode,String devName,String ledType,String devStatusCode,String isPingConnect,String checkResultCode,String devAreaCode,String isDelayData,String isHightPackage,String isHightResponse,String isHaveData,String devFactory,String searchFlag,String beginLastPassTime,String endLastPassTime,String isPhotoSuccess,String repStatusCode,String project,String company,String picStatusFlag,Page page) {
		// TODO Auto-generated method stub
		return this.manageCheckDeviceInfoService.getCheckDeviceInfoPage(DevId,devTypeCode,devName,ledType,devStatusCode,isPingConnect,checkResultCode,devAreaCode,isDelayData,isHightPackage,isHightResponse,isHaveData,devFactory,searchFlag,beginLastPassTime,endLastPassTime,isPhotoSuccess,repStatusCode,project,company,picStatusFlag,page);
	}
	
	/**
	 * 获取巡检设备List；
	 */
	@Override
	public ResultPojo getCheckDeviceInfoList(String DevId,String devTypeCode,String devName,String ledType,String devStatusCode,String isPingConnect,String checkResultCode,String devAreaCode,String isDelayData,String isHightPackage,String isHightResponse,String isHaveData,String devFactory,String searchFlag) {
		// TODO Auto-generated method stub
		return this.manageCheckDeviceInfoService.getCheckDeviceInfoList(DevId,devTypeCode,devName,ledType,devStatusCode,isPingConnect,checkResultCode,devAreaCode,isDelayData,isHightPackage,isHightResponse,isHaveData,devFactory,searchFlag);
	}

	/**
	 * 获取巡检设备对象；
	 */
	@Override
	public ResultPojo getCheckDeviceInfo(String DevId) {
		// TODO Auto-generated method stub
		return this.manageCheckDeviceInfoService.getCheckDeviceInfo(DevId);
	}

	/**
	 * 获取巡检数量；
	 */
	@Override
	public ResultPojo getCheckCount(String beginTime, String endTime,String devTypeCode) {
		// TODO Auto-generated method stub
		return this.manageCheckDeviceInfoService.getCheckCount(beginTime, endTime,devTypeCode);
	}

	@Override
	public ResultPojo reFreshCheckResult(String devTypeCode, String userName) {
		// TODO Auto-generated method stub
		return this.manageCheckDeviceInfoService.reFreshCheckResult(devTypeCode);
	}

}
